package cn.wildfire.chat.app.extendsion.classes;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @Author LiZhong
 * @Date 2019/9/23
 */
public class ResponsePhoneNumberUserInfo implements Parcelable {


    /**
     * code : 0
     * message : success
     * result : {"address":"","company":"","createTime":"2019-09-06 14:56:29","displayName":"emberrrffgghj","dt":1568168114338,"email":"","extra":"{\"caiba_number\":\"xintui_uloyd6of1587mr\",\"is_edit\":\"0\",\"create_time\":\"2019-09-06 14:56:28\"}","gender":0,"id":153,"mobile":"17775708672","name":"17775708672","passwdMd5":"87c4bd9bb55274aa604c1929a14fcf6f","portrait":"http://192.168.1.36:81/fs/5/2019/09/11/10/a84995efdd6a4d0cabbd36a0f2b4be30","regionId":438,"salt":"","social":"","status":1,"type":0,"uid":"MbOgMg__","updateTime":"2019-09-19 11:16:49","version":25}
     */

    private String code;
    private String message;
    private ResultBean result;

    protected ResponsePhoneNumberUserInfo(Parcel in) {
        code = in.readString();
        message = in.readString();
        result = in.readParcelable(ResultBean.class.getClassLoader());
    }

    public static final Creator<ResponsePhoneNumberUserInfo> CREATOR = new Creator<ResponsePhoneNumberUserInfo>() {
        @Override
        public ResponsePhoneNumberUserInfo createFromParcel(Parcel in) {
            return new ResponsePhoneNumberUserInfo(in);
        }

        @Override
        public ResponsePhoneNumberUserInfo[] newArray(int size) {
            return new ResponsePhoneNumberUserInfo[size];
        }
    };

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(code);
        dest.writeString(message);
        dest.writeParcelable(result, flags);
    }

    public static class ResultBean implements Parcelable {
        /**
         * address :
         * company :
         * createTime : 2019-09-06 14:56:29
         * displayName : emberrrffgghj
         * dt : 1568168114338
         * email :
         * extra : {"caiba_number":"xintui_uloyd6of1587mr","is_edit":"0","create_time":"2019-09-06 14:56:28"}
         * gender : 0
         * id : 153
         * mobile : 17775708672
         * name : 17775708672
         * passwdMd5 : 87c4bd9bb55274aa604c1929a14fcf6f
         * portrait : http://192.168.1.36:81/fs/5/2019/09/11/10/a84995efdd6a4d0cabbd36a0f2b4be30
         * regionId : 438
         * salt :
         * social :
         * status : 1
         * type : 0
         * uid : MbOgMg__
         * updateTime : 2019-09-19 11:16:49
         * version : 25
         */

        private String address;
        private String company;
        private String createTime;
        private String displayName;
        private long dt;
        private String email;
        private String extra;
        private int gender;
        private int id;
        private String mobile;
        private String name;
        private String passwdMd5;
        private String portrait;
        private int regionId;
        private String salt;
        private String social;
        private int status;
        private int type;
        private String uid;
        private String updateTime;
        private int version;

        protected ResultBean(Parcel in) {
            address = in.readString();
            company = in.readString();
            createTime = in.readString();
            displayName = in.readString();
            dt = in.readLong();
            email = in.readString();
            extra = in.readString();
            gender = in.readInt();
            id = in.readInt();
            mobile = in.readString();
            name = in.readString();
            passwdMd5 = in.readString();
            portrait = in.readString();
            regionId = in.readInt();
            salt = in.readString();
            social = in.readString();
            status = in.readInt();
            type = in.readInt();
            uid = in.readString();
            updateTime = in.readString();
            version = in.readInt();
        }

        public static final Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel in) {
                return new ResultBean(in);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getCompany() {
            return company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getDisplayName() {
            return displayName;
        }

        public void setDisplayName(String displayName) {
            this.displayName = displayName;
        }

        public long getDt() {
            return dt;
        }

        public void setDt(long dt) {
            this.dt = dt;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getExtra() {
            return extra;
        }

        public void setExtra(String extra) {
            this.extra = extra;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPasswdMd5() {
            return passwdMd5;
        }

        public void setPasswdMd5(String passwdMd5) {
            this.passwdMd5 = passwdMd5;
        }

        public String getPortrait() {
            return portrait;
        }

        public void setPortrait(String portrait) {
            this.portrait = portrait;
        }

        public int getRegionId() {
            return regionId;
        }

        public void setRegionId(int regionId) {
            this.regionId = regionId;
        }

        public String getSalt() {
            return salt;
        }

        public void setSalt(String salt) {
            this.salt = salt;
        }

        public String getSocial() {
            return social;
        }

        public void setSocial(String social) {
            this.social = social;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(address);
            dest.writeString(company);
            dest.writeString(createTime);
            dest.writeString(displayName);
            dest.writeLong(dt);
            dest.writeString(email);
            dest.writeString(extra);
            dest.writeInt(gender);
            dest.writeInt(id);
            dest.writeString(mobile);
            dest.writeString(name);
            dest.writeString(passwdMd5);
            dest.writeString(portrait);
            dest.writeInt(regionId);
            dest.writeString(salt);
            dest.writeString(social);
            dest.writeInt(status);
            dest.writeInt(type);
            dest.writeString(uid);
            dest.writeString(updateTime);
            dest.writeInt(version);
        }
    }
}
